# remove pop
lst = [10, 20, 30, 40, 50, 60, 30]

# remove
lst.remove(30)
print(lst)

# pop(i)
lst.pop(3)
lst.pop()
print(lst)

# 索引位置替换
lst = [10, 20, 30, 40, 50, 60, 30]
lst[1:3] = []
print(lst)

# clear
lst = [10, 20, 30, 40, 50, 60, 30]
lst.clear()
print(lst)

# del
del lst
# print(lst) #NameError: name 'lst' is not defined. Did you mean: 'list'?
